import request from '@/utils/request'

// 获取车型列表
export function getcarTypeList() {
  return request({
    url: '/manager/truckType/simple'
  })
}
// 获取车型分页列表
export function getPagecarTypeList(params) {
  return request({
    url: '/manager/truckType/page',
    method: 'get',
    params
  })
}

// 新增车辆类型
export function addcarTypeList(data) {
  return request({
    url: '/manager/truckType',
    method: 'post',
    data
  })
}
// 获取车型列表
export function getcarTypeDetails(id) {
  return request({
    url: `/manager/truckType/${id}`
  })
}
// 获取车型列表
export function updatecarType(id, data) {
  return request({
    url: `/manager/truckType/${id}`,
    method: 'put',
    data
  })
}
// 删除车型列表
export function delCarType(id) {
  return request({
    url: `/manager/truckType/${id}`,
    method: 'delete'

  })
}

